package com.charger.PromoteOperations.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.charger.common.annotation.Excel;
import com.charger.common.core.domain.BaseEntity;

/**
 * 客户管理对象 client
 * 
 * @author ruoyi
 * @date 2024-11-22
 */
public class Client extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String name;

    /** 登录账号 */
    @Excel(name = "登录账号")
    private String username;

    /** 手机号 */
    @Excel(name = "手机号")
    private Long phone;

    /** 是否投资商 (Y/N) */
    @Excel(name = "是否投资商 (Y/N)")
    private String Investors;

    /** 积分 */
    @Excel(name = "积分")
    private Long Integral;

    /** 是否开通充电卡 (Y/N) */
    @Excel(name = "是否开通充电卡 (Y/N)")
    private String chargeCard;

    /** 认证信息 */
    private String authentication;

    /** 性别 (M/F) */
    @Excel(name = "性别 (M/F)")
    private String sex;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String IdentificationNumber;

    /** 居住地址 */
    @Excel(name = "居住地址")
    private String address;

    /** 头像 */
    @Excel(name = "头像")
    private String img;

    /** 生成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date spawnTime;

    /** 逻辑删除 (默认为 0) */
    @Excel(name = "逻辑删除 (默认为 0)")
    @TableLogic
    private Long del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPhone(Long phone) 
    {
        this.phone = phone;
    }

    public Long getPhone() 
    {
        return phone;
    }
    public void setInvestors(String Investors) 
    {
        this.Investors = Investors;
    }

    public String getInvestors() 
    {
        return Investors;
    }
    public void setIntegral(Long Integral) 
    {
        this.Integral = Integral;
    }

    public Long getIntegral() 
    {
        return Integral;
    }
    public void setChargeCard(String chargeCard) 
    {
        this.chargeCard = chargeCard;
    }

    public String getChargeCard() 
    {
        return chargeCard;
    }
    public void setAuthentication(String authentication) 
    {
        this.authentication = authentication;
    }

    public String getAuthentication() 
    {
        return authentication;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setIdentificationNumber(String IdentificationNumber) 
    {
        this.IdentificationNumber = IdentificationNumber;
    }

    public String getIdentificationNumber() 
    {
        return IdentificationNumber;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setSpawnTime(Date spawnTime) 
    {
        this.spawnTime = spawnTime;
    }

    public Date getSpawnTime() 
    {
        return spawnTime;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("username", getUsername())
            .append("phone", getPhone())
            .append("Investors", getInvestors())
            .append("Integral", getIntegral())
            .append("chargeCard", getChargeCard())
            .append("authentication", getAuthentication())
            .append("sex", getSex())
            .append("IdentificationNumber", getIdentificationNumber())
            .append("address", getAddress())
            .append("img", getImg())
            .append("spawnTime", getSpawnTime())
            .append("del", getDel())
            .toString();
    }
}
